<?php
    include '../trang editor/tintunggiay/connect.php';
    if(isset($_POST['themtin'])){
        $tieude=$_POST['tieude'];
        $nd=$_POST['noidung'];
        $ngdang=$_POST['idnhanvien'];
        $r="insert into tinhot(tieude,noidung,id_user) values('{$tieude}','{$nd}','{$ngdang}')";
        //echo $tieude;
        $q=  mysqli_query($dbc, $r) or die(mysqli_error($dbc));
        header("Location:index.php");
    }
?>
